﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace eShop.Core
{
    /// <summary>
    ///产品单件管理 2016-12-08 中强
    /// </summary>
    public partial interface IRDBSStrategy
    {
        #region 商品单件信息
        /// <summary>
        /// 新增
        /// </summary>
        /// <param name="StockInfo"></param>
        /// <returns></returns>
        int CreateProductDetails(ProductDetailsInfo DetailInfo);


        /// <summary>
        /// 更新
        /// </summary>
        /// <param name="DetailInfo"></param>
        /// <returns></returns>
        int UpdateProductDetails(ProductDetailsInfo DetailInfo);
        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="sid"></param>
        /// <returns></returns>
        int DeleteProductDetailsId(int sid);
        /// <summary>
        /// 获取产品明细列表
        /// </summary>
        /// <returns></returns>
        DataTable GetProductDetailsList(int pid);

        DataTable GetUsableProductDetailsList(int pid);

        DataTable AdminProductDetailsSelectList(int pageSize, int pageNumber, string condition);

        /// <summary>
        /// 获取明细数据
        /// </summary>
        /// <param name="sid"></param>
        /// <returns></returns>
        IDataReader GetProductDetailsBysid(int sid);


        #endregion




    }
}
